package main
import "fmt"
import "rsc.io/quote/v4"
import "com.xzx/greetings"
import "log"

func main(){
	// Set properties of the predefined Logger, including
    // the log entry prefix and a flag to disable printing
    // the time, source file, and line number.
    log.SetPrefix("greetings: ")
    log.SetFlags(0)

	fmt.Println("hello world")
	fmt.Println(quote.Go())
	// Get a greeting message and print it.
    message, _ := greetings.Hello("Gladys")
    fmt.Println(message)

	// A slice of names.
    names := []string{"Gladys", "Samantha", "Darrin"}

    // Request greeting messages for the names.
    messages, _ := greetings.Hellos(names)
	fmt.Println(messages)

	message1, err := greetings.Hello("")
    // If an error was returned, print it to the console and
    // exit the program.
    if err != nil {
        log.Fatal(err)
    }
	// If no error was returned, print the returned message
    // to the console.
    fmt.Println(message1)
}